Skip to content

feat: streamline how balance updates are shown on forms#5015

Merged
therealemjy merged 1 commit into
mainfrom
feat/streamline-balance-updates
Nov 18, 2025
Merged

feat: streamline how balance updates are shown on forms#5015
therealemjy merged 1 commit into
mainfrom
feat/streamline-balance-updates

Conversation

@therealemjy
Copy link
Copy Markdown
Member

@therealemjy therealemjy commented Nov 11, 2025

Jira ticket(s)

VPD-214

Changes

evm app

  • filter out 0 balance mutations within getSimulatedPool query function
  • update BalanceUpdates component according to designs
  • replace the AccountData component with the code from AccountData2
  • rename AssetInfo to ApyBreakdown and update component according to designs
  • update operation forms to use new components and hooks
  • return userCollateralFactor and userLiquidationThresholdPercentage from getPools query as 0 when user is not connected
  • update BalanceUpdates component to match designs
  • add optional displayCommonTokenButtons and selectedTokenLabel properties to SelectTokenTextField component
  • add optional disabled property to Slider component

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Nov 11, 2025

🦋 Changeset detected

Latest commit: 6ea3611

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@venusprotocol/evm Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
app.venus.io Ready Ready Preview Nov 13, 2025 2:52pm
dapp-preview Ready Ready Preview Nov 13, 2025 2:52pm
dapp-testnet Ready Ready Preview Nov 13, 2025 2:52pm
venus.io Ready Ready Preview Nov 13, 2025 2:52pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 11, 2025

Coverage Report for ./apps/evm

Status Category Percentage Covered / Total
🔵 Lines 78.2% 32586 / 41667
🔵 Statements 78.2% 32586 / 41667
🔵 Functions 62.21% 555 / 892
🔵 Branches 71.86% 3893 / 5417
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
apps/evm/src/clients/api/queries/getSimulatedPool/index.ts 99.41% 89.18% 100% 99.41% 1
apps/evm/src/clients/api/queries/useGetPools/getPools/index.ts 99.42% 87.5% 100% 99.42% 1
apps/evm/src/clients/api/queries/useGetPools/getPools/formatOutput/index.ts 98.55% 90.38% 100% 98.55% 1, 82, 95, 361
apps/evm/src/components/BalanceUpdates/index.tsx 98.41% 80% 100% 98.41% 49
apps/evm/src/components/SelectTokenTextField/index.tsx 100% 80% 100% 100%
apps/evm/src/components/SelectTokenTextField/TokenList/index.tsx 87.03% 72.22% 66.66% 87.03% 81-85, 103-112
apps/evm/src/components/Slider/index.tsx 100% 100% 100% 100%
apps/evm/src/containers/AccountData/index.tsx 96.66% 75% 100% 96.66% 35, 59
apps/evm/src/containers/SwapDetails/index.tsx 99.21% 70% 100% 99.21% 116
apps/evm/src/hooks/useFormatTokensToReadableValue.ts 83.33% 50% 100% 83.33% 1
apps/evm/src/hooks/useDelegateApproval/index.ts 84.61% 75% 50% 84.61% 1, 33-36, 52
apps/evm/src/pages/Market/OperationForm/ApyBreakdown/index.tsx 100% 95.45% 100% 100%
apps/evm/src/pages/Market/OperationForm/ApyBreakdown/formatRows/index.tsx 86.41% 68% 100% 86.41% 50-53, 57, 61-63, 69, 93, 97-99
apps/evm/src/pages/Market/OperationForm/BorrowForm/index.tsx 92.56% 88.33% 80% 92.56% 87-92, 235-251, 278-281, 474
apps/evm/src/pages/Market/OperationForm/BorrowForm/useForm/useFormValidation.ts 99.02% 95% 100% 99.02% 1
apps/evm/src/pages/Market/OperationForm/OperationDetails/index.tsx 100% 80% 100% 100%
apps/evm/src/pages/Market/OperationForm/OperationDetails/SwapDetails/index.tsx 100% 90% 100% 100%
apps/evm/src/pages/Market/OperationForm/RepayForm/index.tsx 99.62% 92.92% 100% 99.62% 616, 644
apps/evm/src/pages/Market/OperationForm/RepayForm/useForm/useFormValidation.ts 99.03% 96.29% 100% 99.03% 1
apps/evm/src/pages/Market/OperationForm/SupplyForm/index.tsx 95.84% 90.21% 100% 95.84% 226-241, 252-253, 268, 463, 600
apps/evm/src/pages/Market/OperationForm/SupplyForm/useForm/useFormValidation.ts 99.27% 96.87% 100% 99.27% 1
apps/evm/src/pages/Market/OperationForm/WithdrawForm/index.tsx 92.83% 89.85% 88.88% 92.83% 82-85, 160, 249-265, 289, 466-471
apps/evm/src/pages/Swap/index.tsx 97.74% 87.27% 100% 97.74% 169-171, 364, 415-418
apps/evm/src/pages/Vai/Borrow/index.tsx 95.2% 86.27% 100% 95.2% 63, 86-87, 102, 112, 214-218, 235-236
apps/evm/src/pages/Vai/Repay/index.tsx 94.95% 72% 100% 94.95% 68-69, 160-164, 187-188, 196-198
apps/evm/src/utilities/convertMantissaToTokens.ts 96.15% 88.88% 100% 96.15% 1
apps/evm/src/utilities/convertTokensToMantissa.ts 100% 50% 100% 100%
apps/evm/src/utilities/getSwapToTokenAmountReceived/index.ts 92.85% 66.66% 100% 92.85% 2
Generated in workflow #11835 for commit 6ea3611 by the Vitest Coverage Report Action

@therealemjy therealemjy merged commit 1f0279f into main Nov 18, 2025
6 checks passed
@therealemjy therealemjy deleted the feat/streamline-balance-updates branch November 18, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants